package com.cowcowit.springcloud.apis;

import com.cowcowit.springcloud.result.ResultData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author whboy
 * @create {YEAR}-{MONTH}-{DAY} {TIME}
 */
@FeignClient(value = "cloud-alibaba-seata-account-service2003")
public interface AccountFeignApi {
    //扣减账户余额
    @PostMapping("/springcloud/account/decrease")
    ResultData decrease(@RequestParam("userId") Long userId, @RequestParam("money") Long money);
}